package com.example.demo.stu2;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class MulSerice {
    @Value("${spring.data.redis.host}")
    private String redisHostname;

    @Value("${spring.datasource.url}")
    private String jdbcUrl;


    public void print(){
        System.out.println("redishostName  , jdbcUrl = "+ redisHostname + "," +jdbcUrl);
    }




}
